<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>set</title>
</head>
<body>
    <script>
        const x=new Set([2,3,4,2,4,5,78,87,78]);
        console.log(x)
        var e=[];
        x.forEach(function(gu){
           e.push(gu)

        })
        console.log(e)
    </script>
</body>
</html>